libtest: Skip FUSE if CAP_SYS_ADMIN not in bounding set
authorColin Walters <walters@verbum.org>
Mon, 18 Apr 2016 14:25:32 +0000 (10:25 -0400)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Mon, 18 Apr 2016 19:53:13 +0000 (19:53 +0000)
commitd5498a8b1672e761652b2f2b511f42961b4feed3
tree001ad6b895647f1e7de1a2c252a9c4e2fd8b4227
parent24cab773a2c849a8153529e3eb5f967302339f68
libtest: Skip FUSE if CAP_SYS_ADMIN not in bounding set

I'm not sure if something changed or there was a race condition , or
if extraterrestrials intervened to make the tests pass before, but
in the Docker container `/dev/fuse` does exist and since we appear
to be running as uid 0 it'll be writable.

We previously discussed that another requirement for FUSE (and most
setuid binaries) is having `CAP_SYS_ADMIN`, so let's check for that in
the bounding set too.

Closes: #266
Approved by: jlebon
tests/libtest.sh